home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 November: Tool Chest / Dev.CD Nov 00 TC Disk 1.toast / Sample Code / Devices and Hardware / Disks / iso9660 / BuildISO.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-09-28  |  2.0 KB  |  46 lines  |  [TEXT/CWIE]

  1. /*
  2.     File:        BuildISO.h
  3.     
  4.     Description:collect all the constants and prototypes specific to building 
  5.                 this bizzare little puppy.
  6.  
  7.     Author:        BB
  8.  
  9.     Copyright:     Copyright: © 1990-1999 by Apple Computer, Inc.
  10.                 all rights reserved.
  11.     
  12.     Disclaimer:    You may incorporate this sample code into your applications without
  13.                 restriction, though the sample code has been provided "AS IS" and the
  14.                 responsibility for its operation is 100% yours.  However, what you are
  15.                 not permitted to do is to redistribute the source as "DSC Sample Code"
  16.                 after having made changes. If you're going to re-distribute the source,
  17.                 we require that you make it clear in the source that the code was
  18.                 descended from Apple Sample Code, but that you've made changes.
  19.     
  20.     Change History (most recent first):
  21.                 6/24/99    Updated for Metrowerks Codewarror Pro 2.1(KG)
  22.  
  23. */
  24. #define    LSBPATH        0x00000012L        /* location of the lsb path table */
  25. #define    MSBPATH        0x00000013L        /* location of the msb path table */
  26.  
  27. #define    DIRECTORY    0x00000014L        /* location of directory table */
  28. #define PATHTBLSIZE    0x0000000AL        /* size of each of the path tables */
  29.  
  30. #define DATASTART    0x00000015L        /* where the first data file starts */
  31.  
  32.     /* round up to the next CDBLKSIZE boundary */
  33. #define ROUND_UP(x)    ((x) + CDBLKSIZE -1) & ~(CDBLKSIZE-1)
  34. //Prototypes
  35. OSErr CreatePVD(short referenceNumber);
  36. OSErr CreateVDT(short referenceNumber);
  37. OSErr CreatePathTable(short referenceNumber);
  38. void CreateDirRcd(DirRcd *d, StringPtr name, long start, long length, short flags, OSType fType, OSType fCreator, short finderFlags);
  39. void AddOldAppleExtensions(DirRcd *dirRcd, OSType fType, OSType fCreator, short flags);
  40. void AddAppleExtensions(DirRcd *dirRcd, OSType fType, OSType fCreator, short flags);
  41. void CopyDirRcdToBuffer(DirRcd *d, char *b);
  42. OSErr CopyRsrcFork(short referenceNumber, StringPtr name, short vRefNum, long start, long length);
  43. OSErr CopyDataFork(short referenceNumber, StringPtr name, short vRefNum, long start, long length);
  44. void CreateFiles(short referenceNumber);
  45.  
  46.